package com.tcode.consumer.client;


import com.tcode.consumer.hystrix.UserFallbackFactory;


import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

//服务熔断+feign
@FeignClient(value="provider", fallback = UserFallbackFactory.class)
public interface ExposeClient {
    @RequestMapping("/users/login")
    public String login(@RequestParam("uname") String uname, @RequestParam("upassword") String upassword);

    @RequestMapping("/users/upload")
    public String upload(String filePath1);
}
